
import java.util.Scanner;

public class cc {

	public static void main(String[] args)
	{
		Scanner in=new Scanner(System.in);
		Rectangle[] Rectangles=new Rectangle[2];
		Circle[] Circles=new Circle[2];
			int a=in.nextInt();
			int b=in.nextInt();	
			int c=in.nextInt();
			int d=in.nextInt();
			Rectangles[0]=new Rectangle(a,b);
			Rectangles[1]=new Rectangle(c,d);
			int e=in.nextInt();
			int f=in.nextInt();
			Circles[0]=new Circle(e);
			Circles[1]=new Circle(f);
			int g=Rectangles[0].getPerimeter();
			int h=Rectangles[1].getPerimeter();
			int i=Rectangles[0].getArea();
			int j=Rectangles[1].getArea();
			int k=Circles[0].getPerimeter();
			int l=Circles[1].getPerimeter();
			int m=Circles[0].getArea();
			int n=Circles[1].getArea();
			System.out.println(g+h+k+l);
			System.out.println(i+j+m+n);
            System.out.print("[");
			System.out.print(Rectangles[0]);
			System.out.print(", ");
			System.out.print(Rectangles[1]);
			System.out.println("]");
			System.out.print("[");
			System.out.print(Circles[0]);
			System.out.print(", ");
			System.out.print(Circles[1]);
			System.out.println("]");
			}	

	}
     class Circle {
	private int radius;
	Circle(int radius){
		this.radius=radius;
	}
	
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}
	public int getPerimeter(){
		return (int) (Math.PI*2*radius);
	}
	public int getArea(){
		return (int) (Math.PI*radius*radius);
	}
}
    class Rectangle {	 
	   private int width;
	   private int length;
	   Rectangle(int width,int length){
		   this.width=width;
		   this.length=length;
	   }

	@Override
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
	
	public int getPerimeter()
	{
		return width*2+length*2;
	}
	public int getArea()
	{
		return width*length;
	}




	}
	



